//
//  JXUser.swift
//  01-weiboSwift
//
//  Created by TwistFate on 16/3/2.
//  Copyright © 2016年 TwistFate. All rights reserved.
//

import UIKit

class JXUser: NSObject {

    //用户UID
    var id:Int64 = 0
    
    //用户昵称
    var screen_name:String?
    
    //用户头像地址（中图），50×50像素
    var profile_image_url:String?
    
    //微博认证
    var verified_type:Int = 0
    
    //会员等级
    var mbrank: Int = 0
    
    init(dict:[String : AnyObject]){
    super.init()
    setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    override var description: String {
        // 当计算性属性只有get方法时,可以省略
        //        get {
        //        }
        let key = ["id", "screen_name", "profile_image_url", "verified_type","mbrank"]
        
        return "\n\t用户信息: \(dictionaryWithValuesForKeys(key).description)"
    }
}
